<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <th:block th:include="/pc/include :: header('')"/>
    <link th:href="@{/pc/css/index.css}" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/my.css}">
</head>
<body style="background-color: #F5F5F5">
<div id="top">
    <div class="top_1">
        <div class="top_1-2">
            <ul>
                <li class="n1">
                    <span th:if="!${session.userInfo}">
                        <a href="/login?isPc=pc">登录</a>
                    </span>
                    <span th:if="${session.userInfo}" style="color: #FB6302">
                        <img th:src="(${#strings.isEmpty(session.userInfo.avatar)}) ? @{/img/profile.jpg} : @{${session.userInfo.avatar}}"
                             class="img-circle"
                             style="width: 25px;height: 25px"
                             alt="User Image">&nbsp;&nbsp;[[${session.userInfo.userName}]]
                    </span>
                </li>
                <li class="n1">
                    <span>
                        <a href="/pc/index">首页</a>
                    </span>
                </li>
                <li class="n1">
                    <span th:if="!${session.userInfo}">
                        <a href="/login?isPc=pc">登录</a>
                    </span>
                </li>
                <li class="n1">
                    <a th:if="${session.userInfo}" href="/logout">
                        <i class="fa fa-sign-out"></i> 退出登录</a>
                </li>
            </ul>
        </div>
    </div>
</div>

<div id="head2" style="height: auto;margin-top: 0px;">

    <!-- 跳转到列表页 -->
    <div class="viode" style="height: auto;margin-left: 100px;">
        <div style="margin-left: 9px;width: 1116px !important;height: 700px;"
             th:if="${pageInfo}">
            <iframe class="RuoYi_iframe" name="iframe0" width="100%" height="100%"
                    th:if="${pageInfo}"
                    style="margin-top: 13px;"
                    th:src="@{${pageInfo}}" frameborder="0" seamless></iframe>
        </div>
    </div>


    <div class="head2_1" style="width: 144px;height: auto;margin-top: 20px;margin-left: -77px;">
        <div class="head2_1-1">
            <ul th:if="${session.userInfo.remark == 'student'}">
                <li th:class="${typeId == '4'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=4'">
                    我的信息
                </li>
                <li th:class="${typeId == '1'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=1'">
                    出入信息上报
                </li>
                <li th:class="${typeId == '5'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=5'">
                    体温上报
                </li>
                <li th:class="${typeId == '2'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=2'">
                    请假管理
                </li>
                <li th:class="${typeId == '3'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=3'">
                    物资申请
                </li>

                <li th:class="${typeId == '3'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=3'">
                    核酸预约
                </li>
            </ul>
            <ul th:if="${session.userInfo.remark == 'teacher'}">
                <li th:class="${typeId == '4'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=4'">
                    我的信息
                </li>
                <li th:class="${typeId == '10'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=10'">
                    学生管理
                </li>
                <li th:class="${typeId == '2'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=2'">
                    请假管理
                </li>
                <li th:class="${typeId == '7'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=7'">
                    课程安排
                </li>
                <li th:class="${typeId == '8'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=8'">
                    师生沟通
                </li>
                <li th:class="${typeId == '9'} ? |selected|"
                    onclick="window.location.href='/pc/center?typeId=9'">
                    特殊情况
                </li>
            </ul>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">


    function show7(t) {
        var div = t.parentNode;
        var div2 = div.children[1];
        div2.style.borderColor = "#FF6700";
        div2.style.backgroundColor = "#FF6700";
        div2.style.color = "white";
    }

    function yincang(id) {
        document.getElementById(id).style.display = "none";
    }

    function yincang3(t) {
        var div = t.parentNode;
        var div2 = div.children[1];
        div2.style.borderColor = "white";
        div2.style.backgroundColor = "#050505";
        div2.style.color = "white";
    }

    function deleCollect(id) {
        $.modal.confirm("确认要删除选中的吗?", function () {
            $.ajax({
                type: "post",
                url: ctx + "system/collect/dele/" + id,
                success: function (result) {
                    if (result.code == web_status.SUCCESS) {
                        layer.alert("删除成功", {
                                icon: 1,
                                title: "系统提示"
                            },
                            function (index) {
                                //关闭弹窗
                                layer.close(index);
                                window.location.reload();
                            });
                    }
                }
            });

        });
    }

    function yuDing(petId) {
        var editUrl = ctx + "pc/petOrder/add?petId=" + petId;
        $.modal.open("下单", editUrl, '700', '870');
    }

    function deleCar(id) {
        $.modal.confirm("确认要删除选中的吗?", function () {
            $.ajax({
                type: "post",
                url: ctx + "system/petCar/remove",
                data: {"ids": id},
                success: function (result) {
                    if (result.code == web_status.SUCCESS) {
                        layer.alert("删除成功", {
                                icon: 1,
                                title: "系统提示"
                            },
                            function (index) {
                                //关闭弹窗
                                layer.close(index);
                                window.location.reload();
                            });
                    }
                }
            });

        });
    }

</script>

</body>

</html>
